package com.factory._15chain;

/**
 * @author Qinye
 * @date 2023/8/13 17:13
 */
public abstract class Handler {
    protected Handler successor;

    public abstract void handleRequest();

    public void setSuccessor(Handler successor) {
        this.successor = successor;
    }
    public Handler getSuccessor(){
        return successor;
    }
}
